<template>
  <div class="list-item">
    <span class="subject">{{ mail.subject }}</span>
    <span class="sender">{{ mail.sender }}</span>
    <span class="date">{{ mail.received_at }}</span>
    <span class="status">
      <span class="unread">已删除，不可查看</span>
    </span>
  </div>
</template>
<script setup lang="ts">
defineProps<{
  mail: any
}>()
</script>
<style scoped>
.list-item {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid #eee;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
}
.subject { display: inline-block; width: 320px; padding-right: 12px; }
.sender { display: inline-block; width: 300px; padding-right: 12px; }
.date { display: inline-block; width: 300px; padding-right: 12px; }
.status { display: inline-block; width: 300px; }
.unread { color: #f56c6c; }
</style>
